<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景图片位置</title>
  <style>
      .box {
          width: 100%;
          height: 600px;
          border: 2px solid red;
      }
      .container {
          margin: 0 auto;
          width: 200px;
          height: 100px;
          border: 2px solid blue;
          background-image: url("./img/star.png");
          background-repeat: no-repeat;
          background-position: 50px 20px;
      }
  </style>
</head>
<body>
<div class="box">
    <div class="container"></div>
</div>
</body>
</html>